import React from 'react';
import { Space, Swiper, Image } from 'antd-mobile';
import { SwiperRef } from 'antd-mobile/es/components/swiper'
const Myswiper = (props) => {
    // console.log('props', props);
    const { swiperArr } = props
    return (
        <div>
            <Swiper autoplay autoplayInterval={1000} loop={true}>
                {
                    swiperArr.map(item => <Swiper.Item key={item.bannerid}>
                        <Image src={item.img} />
                    </Swiper.Item>)
                }
            </Swiper>
        </div>
    );
}

export default Myswiper;
